#include"test.h"

void progress()
{
  int cnt = 0;
  char str[101];
  char t[] = "|/-\\";
  memset(str,'\0',101);
  while(cnt <= 100)
  {
    printf("[%-100s][%d%%][%c]\r",str,cnt,t[cnt%4]);
    fflush(stdout);
    usleep(100000);
    str[cnt] = '#';
    cnt++;
  }
  printf("\n");
}
